* {
    margin: 0;
    padding: 0;
}

.w {
    width: 1200px;
    margin: auto;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

input {
	outline:none;
}

/*清除浮动*/
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

.header {
    height: 42px;
    /*注意此地方会层叠 w里面的margin*/
    margin: 30px auto;
}

.logo {
    float: left;
    width: 198px;
    height: 42px;
}

/*导航栏部分*/
.nav {
    float: left;
    margin-left: 70px;
}

.nav ul li {
    float: left;
}

.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}

/* 搜索框 */
.search {
    float: left;
    width: 412px;
    height: 42px;
    margin-left: 70px;
}

.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: none;
    font-size: 14px;
    color: #bfbfbf;
    padding-left: 15px;
}

.search button {
    float: left;
    width: 50px;
    height: 42px;
    border: 0;
    background: url(../images/btn.png);
}

/* 用户部分 user*/
.user {
    float: right;
    line-height: 42px;
    margin-right: 110px;
    font-size: 14px;
    color: #666;
}

.user>img {
    vertical-align: middle;
}

/*banner部分*/
.banner {
    height: 421px;
    background-color: #1c036c;
}

.banner .w {
    height: 421px;
    background: url(../images/banner2.png) no-repeat top center;
}

.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background: rgba(0, 0, 0, .3)
}

.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.subnav ul li a {
    font-size: 14px;
    color: #fff;
}

.subnav ul li a:hover {
    color: #00a4ff;
}

.subnav ul li a span {
    float: right;
}

.course {
    float: right;
    width: 230px;
    height: 300px;
    /*浮动的盒子不会有外边距合并的问题*/
    margin-top: 50px;
    background-color: #fff;
}

.course h2 {
    height: 48px;
    line-height: 48px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    /*文字之间的间距*/
    letter-spacing: 2px;
    background-color: #9bceea;
}

.bd {
    padding: 0 20px;
}

.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
}

.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd .more {
    display: block;
    margin-top: 5px;
    height: 38px;
    border: 1px solid #00a4ff;
    line-height: 38px;
    font-size: 16px;
    font-weight: 700;
    color: #00a4ff;
    text-align: center;
}

/*精品推荐部分*/
.goods {
    height: 60px;
    margin-top: 10px;
    background-color: #fff;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, .1);
    /*行高会继承给三个孩子*/
    line-height: 60px;
}

.goods h3 {
    float: left;
    margin-left: 30px;
    color: #00a4ff;
    font-size: 16px;
}

.goods ul {
    float: left;
    margin-left: 30px;
}

.goods ul li {
    float: left;
}

.goods ul li a {
    padding: 0px 30px;
    color: #000;
    font-size: 16px;
    border-left: 1px solid #ccc;

}

.mod {
    float: right;
    font-size: 14px;
    color: #00a4ff;
    margin-right: 30px;
}

/* 精品推荐区域 */
.box {
    margin-top: 30px;
}

.box-hd {
    height: 45px;
}

.box-hd h3 {
    float: left;
    color: #494949;
    font-weight: 400;
    font-size: 20px;
}

.box-hd a {
    float: right;
    margin-top: 10px;
    margin-right: 30px;
    color: #d4d5d6;
    font-size: 12px;
}

.box-bd ul {
    width: 1225px;
}

/* 把li 的父亲ul 修改的足够宽一行能装开5个盒子就不会换行 */
.box-bd ul li {
    position: relative;
    float: left;
    width: 228px;
    height: 270px;
    margin-bottom: 15px;
    margin-right: 15px;
    background-color: #fff;
}

.box-bd ul li:hover {
    box-shadow: 1px 1px 3px 3px rgba(0, 0, 0, .1);
}

.box-bd ul li>img {
    width: 100%;
}

.box-bd ul li em>img {
    position: absolute;
    top: 4px;
    right: -4px;
}

.box-bd ul li h4 {
    margin: 15px 20px 0 25px;
    font-size: 14px;
    font-weight: 400;
}

.box-bd ul li p {
    margin: 15px 20px 0 25px;
    color: #999999;
    font-size: 12px
}

.box-bd ul li p span {
    color: #ff7c2d;
}

/* 编程入门区域 */
.box-one {
    margin-top: 30px;
}

.one-top {
    height: 45px;
}

.one-top h3 {
    float: left;
    color: #494949;
    font-weight: 400;
    font-size: 20px;

}

.one-top ul {
    text-align: center;
    margin-left: 350px;
}

.one-top ul li {
    float: left;
    margin-left: 70px;
}

.one-top ul li a {
    font-size: 16px;
    color: #d9dbdd;
}

.one-top ul li a:hover {
    color: #00a4ff;
}

.one-top>a {
    float: right;
    margin-top: 10px;
    margin-right: 30px;
    color: #d4d5d6;
    font-size: 12px;
}

.one .right {
    float: right;
    width: 958px;
    height: 394px;
}

.right ul {
    width: 980px;
    margin-top: 17px;
}

.right ul li {
    float: left;
    margin-right: 15px;
    width: 228px;
    height: 270px;
    background-color: #fff;
}

.right ul li:hover {
    box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, .1);
}

.right ul li img {
    width: 100%;
}

.right ul li h4 {
    margin: 15px 20px 0 25px;
    font-size: 14px;
    font-weight: 400;
}

.right ul li p {
    margin: 15px 20px 0 25px;
    color: #999999;
    font-size: 12px
}

.right ul li p span {
    color: #ff7c2d;
}

/* 机器学习工程师 区域 */
.box-tow {
    margin-top: 30px;
}

.tow-bottom {
    height: 270px;
}

.tow-bottom ul {
    width: 1225px;
}

.tow-bottom ul li {
    float: left;
    margin-right: 15px;
    width: 228px;
    height: 270px;
    background-color: #fff;
}

.tow-bottom ul li:hover {
    box-shadow: 1px 1px 3px 3px rgba(0, 0, 0, .1);
}

.tow-bottom ul li img {
    width: 100%;
}

.tow-bottom ul li h4 {
    margin: 15px 20px 0 25px;
    font-size: 14px;
    font-weight: 400;
}

.tow-bottom ul li p {
    margin: 15px 20px 0 25px;
    color: #999999;
    font-size: 12px
}

.tow-bottom ul li p span {
    color: #ff7c2d;
}

/* 左侧导航栏区域 */


/* footer 区域 */
.footer {
    height: 415px;
    margin-top: 30px;
    background-color: #fff;
}

.footer .w {
    padding-top: 35px;
}

.copyright {
    float: left;
}

.copyright p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}

.copyright a {
    display: inline-block;
    width: 122px;
    height: 37px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 37px;
    font-size: 16px;
    color: #00a4ff;
}

.links {
    float: right;
}

.links dl {
    float: left;
    margin-left: 100px;
}

.links dl dt {
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.links dl dd a {
    color: #333;
    font-size: 13px;
}